Skip to content

Subsystem 6e: CCTV codes (/cctv + in-game, schema v5) - #35

Merged
HandyS11 merged 8 commits into
developfrom
feat/item-database-5
Jun 29, 2026
Merged

Subsystem 6e: CCTV codes (/cctv + in-game, schema v5)#35
HandyS11 merged 8 commits into
developfrom
feat/item-database-5

Conversation

@HandyS11

Copy link
Copy Markdown
Owner

Closes subsystem 6. Adds a monument→CCTV-codes lookup: /cctv (Discord, fixed 11-monument dropdown) + !cctv (in-game, fuzzy name match).

What

  • New top-level Cctv table on ItemDataset (schema v4→v5), sourced offline from rustplusplus cctv.json (11 monuments). Not item-keyed — mirrors the 6c RaidTargets / 6d Smelters "dedicated name-resolved table" shape; ItemRecord untouched.
  • Generator OfflineCctvSource un-escapes the markdown-escaped wildcards (\**, count preserved) + DatasetValidator CCTV checks (MinCctvCount, empty name/codes/code).
  • CctvLookup / CctvMatch / IItemDatabase.ResolveCctv (+ CctvMonuments) over the shared NameMatcher.
  • In-game !cctv (fuzzy) + slash /cctv (fixed [Choice] dropdown). Discord embed fences the codes so wildcard asterisks render literally; in-game sends them raw. Localized wildcard note (EN/FR) appended only for dynamic monuments.
  • Drift guard: a test reconciles the static slash [Choice] set against the generated monument set, both directions (catches the gap rustplusplus has — its dropdown omits Airfield; ours doesn't).

Verification

  • Full suite 691 tests / 16 assemblies green (666 baseline + 25 new), -warnaserror clean, jb cleanupcode no-diff.
  • Bundle regen provably additive (items/raidTargets/smelters byte-identical); schema-version coherent 5/5/5; CctvAsOf = 2025-11-12 flows to the /cctv footer.

🤖 Generated with Claude Code

HandyS11 and others added 8 commits June 29, 2026 18:04
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add cctv.json row to the source-file table, /cctv to the calculator
list, CctvAsOf to the provenance constants list, and CCTV Notes bullet.
Also fix comment-rot (21→22 handler names) and apply jb cleanupcode
reformats to IItemDatabase.cs, CctvChoiceDriftTests.cs, DatasetValidator.cs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@HandyS11
HandyS11 merged commit 1672c8e into develop Jun 29, 2026
3 checks passed
@HandyS11
HandyS11 deleted the feat/item-database-5 branch June 29, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant